package com.hurl.stock.biz.dmb;

import java.util.List;

import javax.servlet.annotation.WebServlet;

import com.hurl.stock.persistence.DmGpBO;
import com.hurl.stock.util.HibernateExecutor;
import com.hurl.stock.util.HibernateUtils;
import com.opensymphony.xwork2.ActionSupport;

/**
 * Servlet implementation class DmGpAction
 */
@WebServlet("/DmGpAction")
public class DmGpAction extends ActionSupport {
	private List<DmGpBO> bolist;
	@Override
	public String execute() throws Exception {
		HibernateExecutor exec = HibernateUtils.createExecutor();
		exec.beginTransaction();
		bolist = exec.findAllBOList(DmGpBO.class);
		return SUCCESS;
	}
	public List<DmGpBO> getBolist() {
		return bolist;
	}
	public void setBolist(List<DmGpBO> bolist) {
		this.bolist = bolist;
	}
}
